package com.flycun;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class OrderController {

	@RequestMapping("/order/user/{id}")
	public Object getUser(@PathVariable("id") int id) {
		Object object=userServiceRemote.getCustomer(id);
		return object;
	}
	@RequestMapping("/")
	public String index() {
		return "hello";
	}
	
	@Autowired
    UserServiceRemote userServiceRemote;
	

}